package cn.edu.scau.cmi.zhangxiyang.Composite;

public class Leaf implements Component{
	
	private String name;
	
	public Leaf(String name) {
		this.name = name;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public String union() {
		//System.out.println(getName());
		return getName();
	}

}
